// 前台的首页

//轮播图列表展示功能
$.ajax({
    type:'get',
    url:'/slides',
    success:function(res){
     console.log(res)  
     var html = template('slidesTpl',{data:res})
     $('.swiper-wrapper').html(html)
     var swiper = new Swiper('.swiper-container', {
        loop: true,
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev',
        },
        pagination: {
          el: '.swiper-pagination'
        },
      });
    }
})